package com.ambimmort.shj.action.logmanage;

import com.ambimmort.shj.service.logmanageService.LogmanageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ma on 2015/7/30.
 */
@Controller("/action/log/strategy_receive_query.do")
public class QueryStrategyReceive {

    @Autowired
    private LogmanageService logmanageService;

    @RequestMapping("/action/log/strategy_receive_query.do")
    @ResponseBody
    public String action_strategy_receive_query(
            HttpServletRequest request, @RequestParam("deviceId") String deviceId, @RequestParam("startTime") long startTime,
            @RequestParam("endTime") String endTime, @RequestParam("pageCount") String pageCount, @RequestParam("page") int page,
            @RequestParam("MessageType") String MessageType, @RequestParam("MessageNo") String MessageNo, @RequestParam("ip") String ip, @RequestParam("rck_flag") String rck_flag) {

           return logmanageService.queryStrategyReceive(deviceId,startTime,Long.parseLong(endTime),Integer.parseInt(pageCount),page,MessageType,MessageNo,ip,rck_flag);

    }
}
